﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utilerias
{
    public static class Formularios
    {
        public static void RefreshTabControl(System.Windows.Forms.TabControl tab)
        {
            tab.Focus();
            tab.TabIndex = 0;
            tab.TabIndex = 1;
            tab.TabIndex = 2;
            tab.TabIndex = 3;
            tab.TabIndex = 4;
            tab.TabIndex = 5;
            tab.TabIndex = 0;
        }

        public static void MuestrafrmReporte(System.Windows.Forms.Form frmOrigen, int num)
        {
            System.Windows.Forms.Form childForm = new PL.Formularios.frmReportes(num);
            childForm.MdiParent = frmOrigen.MdiParent;
            childForm.Text = "Ventana " + childForm.Text;
            childForm.Show();
        }

        public static void MuestrafrmReporte(System.Windows.Forms.Form frmOrigen, int num, int FolioVenta)
        {
            System.Windows.Forms.Form childForm = new PL.Formularios.frmReportes(num, FolioVenta);
            childForm.MdiParent = frmOrigen.MdiParent;
            childForm.Text = "Ventana " + childForm.Text;
            childForm.Show();
        } 
    }
}
